using System.Drawing;
using System.Windows.Forms;
using stdole;

namespace TMSIM.Client.BizGIS.Business
{
    public class ImageConverter2 : AxHost
    {
        private ImageConverter2() : base(null)
        {
        }

        public static IPictureDisp ImageToIPicture(Image image)
        {
            return (IPictureDisp) GetIPictureDispFromPicture(image);
        }

        public static Image IPictureToImage(StdPicture picture)
        {
            return GetPictureFromIPicture(picture);
        }
    }
}